from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from PCGVDeathsController import PCGVDeathsController
import logging

class PCGVDeathsHandler(webapp.RequestHandler):

	controller = PCGVDeathsController()
	def get(self):
		self.controller.Run()
		self.response.headers['Content-Type'] = 'text/plain'
		self.response.out.write('Cronjob successful!')
		logging.info("Cronjob ran")

address = "/PCGVDeathsHandler/".encode("utf-8")
application = webapp.WSGIApplication([(address, PCGVDeathsHandler)], debug=True)




